''========================================================
'' Autor: 		Luis Antonio Lara Capetillo
'' Fecha Creación: 	13/12/2012
'' Descripcion: 	Clase perteneciente a la capa de negocios
''========================================================

Imports CapaDatos
Imports CapaEntidad

Public Class CN_DataAccesTipos_Buques

	Public Sub InsertarDataAccesTipos_Buques(ByVal DataAccesTipos_Buques As DataAccesTipos_Buques, ByVal conexion As String, ByRef Verificador As Integer)
		Try
			Dim claseCapaDatos As New CapaDatos.CD_DataAccesTipos_Buques()
			claseCapaDatos.InsertarDataAccesTipos_Buques(DataAccesTipos_Buques, conexion, Verificador)
		Catch ex As Exception
			Throw ex
		End Try
	End Sub
	Public Sub ConsultaDataAccesTipos_Buques(ByRef Grid As System.Web.UI.WebControls.GridView, ByVal DataAccesTipos_Buques As DataAccesTipos_Buques, ByVal conexion As String, ByRef List As System.Collections.Generic.List(Of DataAccesTipos_Buques))
		Try
			Dim claseCapaDatos As New CapaDatos.CD_DataAccesTipos_Buques()
			claseCapaDatos.ConsultaDataAccesTipos_Buques(DataAccesTipos_Buques, conexion, List)

			Grid.DataSource = List
			Grid.DataBind()
		Catch ex As Exception
			Throw ex
		End Try
	End Sub
	Public Sub ModificarDataAccesTipos_Buques(ByVal DataAccesTipos_Buques As DataAccesTipos_Buques, ByVal conexion As String, ByRef Verificador As Integer)
		Try
			Dim claseCapaDatos As New CapaDatos.CD_DataAccesTipos_Buques()
			claseCapaDatos.ModificarDataAccesTipos_Buques(DataAccesTipos_Buques, conexion, Verificador)
		Catch ex As Exception
		Throw ex
		End Try
	End Sub

End Class